package com.example.testdemo.dao;

import com.example.testdemo.dto.User;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;
/**
 * @Author: chengxuefei
 * @Date: 2021/7/2 0026
 * @Time: 15:23
 */
public interface UserDao extends JpaRepository<User,String> {



    @Query(value = " SELECT ABS(?)", nativeQuery = true)
    Long  testFun(Integer param);


}
